-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix a doc details about loading Native DLLs #3310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Note that `NativeLibrary.Load()` etc. must return the actual OS handle - Note that `AssemblyLoadContext.LoadUnmanagedDllFromPath()` also returns the OS handle (also fix its exceptions).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @swaroop-sridhar for your PR. Left a couple of suggestions.
Co-Authored-By: Maira Wenzel <[email protected]>
Co-Authored-By: Maira Wenzel <[email protected]>
Co-Authored-By: Maira Wenzel <[email protected]>
Co-Authored-By: Maira Wenzel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the comments in dotnet/coreclr#27090, seems good to me.
@mairaw I've applied the changes you suggested. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @swaroop-sridhar!
Summary
NativeLibrary.Load()
etc. must return the actual OS handleAssemblyLoadContext.LoadUnmanagedDllFromPath()
also returns the OS handle(also fix its exceptions).